/*
 * XML Type:  BankTransactionList
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.BankTransactionList
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML BankTransactionList(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class BankTransactionListImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.ofx.types.x2003.x04.BankTransactionList
{
    
    public BankTransactionListImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName DTSTART$0 = 
        new javax.xml.namespace.QName("", "DTSTART");
    private static final javax.xml.namespace.QName DTEND$2 = 
        new javax.xml.namespace.QName("", "DTEND");
    private static final javax.xml.namespace.QName STMTTRN$4 = 
        new javax.xml.namespace.QName("", "STMTTRN");
    
    
    /**
     * Gets the "DTSTART" element
     */
    public java.lang.String getDTSTART()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTSTART$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "DTSTART" element
     */
    public net.ofx.types.x2003.x04.DateTimeType xgetDTSTART()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTSTART$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "DTSTART" element
     */
    public void setDTSTART(java.lang.String dtstart)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTSTART$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DTSTART$0);
            }
            target.setStringValue(dtstart);
        }
    }
    
    /**
     * Sets (as xml) the "DTSTART" element
     */
    public void xsetDTSTART(net.ofx.types.x2003.x04.DateTimeType dtstart)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTSTART$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.DateTimeType)get_store().add_element_user(DTSTART$0);
            }
            target.set(dtstart);
        }
    }
    
    /**
     * Gets the "DTEND" element
     */
    public java.lang.String getDTEND()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTEND$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "DTEND" element
     */
    public net.ofx.types.x2003.x04.DateTimeType xgetDTEND()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTEND$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "DTEND" element
     */
    public void setDTEND(java.lang.String dtend)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTEND$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DTEND$2);
            }
            target.setStringValue(dtend);
        }
    }
    
    /**
     * Sets (as xml) the "DTEND" element
     */
    public void xsetDTEND(net.ofx.types.x2003.x04.DateTimeType dtend)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTEND$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.DateTimeType)get_store().add_element_user(DTEND$2);
            }
            target.set(dtend);
        }
    }
    
    /**
     * Gets array of all "STMTTRN" elements
     */
    public net.ofx.types.x2003.x04.StatementTransaction[] getSTMTTRNArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            java.util.List targetList = new java.util.ArrayList();
            get_store().find_all_element_users(STMTTRN$4, targetList);
            net.ofx.types.x2003.x04.StatementTransaction[] result = new net.ofx.types.x2003.x04.StatementTransaction[targetList.size()];
            targetList.toArray(result);
            return result;
        }
    }
    
    /**
     * Gets ith "STMTTRN" element
     */
    public net.ofx.types.x2003.x04.StatementTransaction getSTMTTRNArray(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.StatementTransaction target = null;
            target = (net.ofx.types.x2003.x04.StatementTransaction)get_store().find_element_user(STMTTRN$4, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            return target;
        }
    }
    
    /**
     * Returns number of "STMTTRN" element
     */
    public int sizeOfSTMTTRNArray()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(STMTTRN$4);
        }
    }
    
    /**
     * Sets array of all "STMTTRN" element
     */
    public void setSTMTTRNArray(net.ofx.types.x2003.x04.StatementTransaction[] stmttrnArray)
    {
        synchronized (monitor())
        {
            check_orphaned();
            arraySetterHelper(stmttrnArray, STMTTRN$4);
        }
    }
    
    /**
     * Sets ith "STMTTRN" element
     */
    public void setSTMTTRNArray(int i, net.ofx.types.x2003.x04.StatementTransaction stmttrn)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.StatementTransaction target = null;
            target = (net.ofx.types.x2003.x04.StatementTransaction)get_store().find_element_user(STMTTRN$4, i);
            if (target == null)
            {
                throw new IndexOutOfBoundsException();
            }
            target.set(stmttrn);
        }
    }
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "STMTTRN" element
     */
    public net.ofx.types.x2003.x04.StatementTransaction insertNewSTMTTRN(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.StatementTransaction target = null;
            target = (net.ofx.types.x2003.x04.StatementTransaction)get_store().insert_element_user(STMTTRN$4, i);
            return target;
        }
    }
    
    /**
     * Appends and returns a new empty value (as xml) as the last "STMTTRN" element
     */
    public net.ofx.types.x2003.x04.StatementTransaction addNewSTMTTRN()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.StatementTransaction target = null;
            target = (net.ofx.types.x2003.x04.StatementTransaction)get_store().add_element_user(STMTTRN$4);
            return target;
        }
    }
    
    /**
     * Removes the ith "STMTTRN" element
     */
    public void removeSTMTTRN(int i)
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(STMTTRN$4, i);
        }
    }
}
